import request from '@/utils/request'

// 查询订单操作记录列表
export function listRecod(query) {
  return request({
    url: '/oms/recod/list',
    method: 'get',
    params: query
  })
}

// 查询订单操作记录详细
export function getRecod(id) {
  return request({
    url: '/oms/recod/' + id,
    method: 'get'
  })
}

// 新增订单操作记录
export function addRecod(data) {
  return request({
    url: '/oms/recod',
    method: 'post',
    data: data
  })
}

// 修改订单操作记录
export function updateRecod(data) {
  return request({
    url: '/oms/recod',
    method: 'put',
    data: data
  })
}

// 删除订单操作记录
export function delRecod(id) {
  return request({
    url: '/oms/recod/' + id,
    method: 'delete'
  })
}

// 导出订单操作记录
export function exportRecod(query) {
  return request({
    url: '/oms/recod/export',
    method: 'get',
    params: query
  })
}